package com.tourism.website.articlemanage.service;

import com.tourism.website.articlemanage.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tourism.website.articlemanage.mapper.ArticleMapper;
import com.tourismwebsite.articlemanage.dto.ArticleCategoryManageDTO;
import com.tourismwebsite.articlemanage.dto.ArticleManageDTO;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kevin
 * @since 2024-06-11
 */
public interface IArticleService extends IService<Article> {
    //0通过，1不通过，2审批中
    Boolean updateByArticleId(Integer articleId,String status,Integer reviewer);

    //查询文章内容
    List<ArticleManageDTO> queryArticleManage(Integer articleId);

    //文章删除（支持批量）
    Boolean deleteArticleManage(Integer articleId);

    //查询文章的名字和发布的时间
    List<ArticleManageDTO> queryNameAndTime(Integer articleId);
}
